package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import com.isunland.managesystem.entity.Message;

public class MessageDetailActivity extends SingleFragmentActivity {

  private Message message;

  @Override protected Fragment createFragment() {
    int type = getIntent().getIntExtra(MessageDetailFragment.EXTRA_TYPE,
        MessageDetailFragment.VALUE_RECEIVE);
    message = (Message) getIntent().getSerializableExtra(MessageDetailFragment.EXTRA_MESSAGE);
    return MessageDetailFragment.newInstance(message, type);
  }
}
